function rslice_toggle_clim_autoscale ( hObject, handles )
% RSLICE_TOGGLE_CLIM_AUTOSCALE:  flip the autoscale switch.  Default
% is off.

gdata = guidata ( hObject );

gdata.autoscale_clims = 1 - gdata.autoscale_clims;

%
% Reset the label
switch ( gdata.autoscale_clims )
case 0
	set ( gcbo, 'Label', 'Autoscale Color Limits' );
case 1
	set ( gcbo, 'Label', 'Turn Off Color Limit Autoscaling' );
end

%
% And finally, save it.
guidata ( hObject, gdata );

return
